import request from '@/utils/request'
// 获取各类文章的内容
export const getArticleContent = (id,type) =>{
  return request.get('/'+type+'/htmlcontent/'+id)

}

export const getComment = (categoryName,contentId,commentId) =>{
  return request.get('/comment/praiseandtime/'+categoryName+'/'+contentId+'/'+commentId)
}
// 获取图文的内容详情
export const getIamgeText =(time)=>{
  return request.get('/hp/bydate/'+time)
}

// 获取作者作品
export const getWorks = (id,page)=>{
   return request.get('/author/works?author_id='+ id +'&page_num='+page)
}

// 获取长篇(连载)的内容
export const getLongTitle =(id)=>{
  return request.get('/find/serial/list/'+id)
}
